<div class="content">
	<?php
		// $args = array('scode' => $data['scode'], 'pevent' => $data['pevent']);
		// $url = n_url('nconfig', 'siteIndex', $args);
		// $link = n_ui($url, '返回');
		// echo n_mod('skin')->pageHead('新增规则', array($link));
	?>
	<div class="n-row n-margin-top n-margin-bottom">
		<?php
		if (empty($data['data'])) :
		?>
		<div class="n-col-12" style="text-align:center">
			本规则没有可配置项目
		</div>
		<?php
		else:
			foreach ($data['data'] as $key => $val) :
				$args = array(
					'scode' => $data['scode'],
					'templateid' => $val['id'],
					'pevent' => $data['pevent'],
				);
				$url = n_url('nconfig', 'siteEdit', $args);
		?>
		<div class="type-item n-col-3 n-padding-default">
			<button class="a-button-default">
				<?=n_ui($url, $val['name'], 'style="display:block;"')?>
			</button>
		</div>
		<?php
			endforeach;
		endif;
		?>
	</div>
</div>